package com.hh.us.entity;

import java.io.Serializable;

import com.github.jmkgreen.morphia.annotations.Entity;
import com.github.jmkgreen.morphia.annotations.Indexed;
import com.hh.us.mongo.morphia.entity.UsAbstractMorphiaEntity;

/**
 * url
 * @author hh
 *
 */
@Entity(noClassnameStored=true)
public class Urls extends UsAbstractMorphiaEntity implements Serializable {
	private static final long serialVersionUID = -2417167946474396512L;

	@Indexed(unique = true)
	private String uid;
	/**
	 * long url
	 */
	private String lurl;
	/**
	 * short url
	 */
	@Indexed(unique = true)
	private String surl;
	
	private String salt;
	
	public Urls() {
	}

	public Urls(String uid, String lurl, String surl) {
		super();
		this.uid = uid;
		this.lurl = lurl;
		this.surl = surl;
	}

	public String getLurl() {
		return lurl;
	}
	public void setLurl(String lurl) {
		this.lurl = lurl;
	}
	public String getSurl() {
		return surl;
	}
	public void setSurl(String surl) {
		this.surl = surl;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

}
